package com.tocean.app.exception;

public class NxFrameworkException extends RuntimeException {

    private Integer code;

    public NxFrameworkException(String message) {
        super(message);
        this.code = 500;
    }

    public NxFrameworkException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    @Override
    public String toString() {
        return "DataException{" +
                "code=[" + code + "]," +
                "message=[" + this.getMessage() + "]," +
                "}";
    }

}
